package com.hippy.erya.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class OrderEvaluateEntity {

    private String date;

    private int goodScoreCount;

    private int badScoreCount;

    private List<String> badOrderContents = new ArrayList<>();

    public List<String> getBadOrderContents() {
        if (badOrderContents.size() > 5) {
            return badOrderContents.subList(0, 5);
        }
        return badOrderContents;
    }
}
